package inet.app.vod;

import inet.app.vod.config.AppConstants;
import inet.app.vod.net.http.MyVolley;
import android.app.Application;
import android.view.Window;

import com.inet.app.framework.bitmap.UniversalImageUtil;
import com.inet.app.framework.memory.FileManager;

public class MyApp extends Application {

	// Activity window for set brightness
	public Window mWindowBrightness;

	@Override
	public void onCreate() {
		// initialize universal image loader
		UniversalImageUtil.getInstance(getApplicationContext())
				.initImageLoaderInMyApp();

		// initialize volley async library
		MyVolley.init(this);

		// create folder
		FileManager.createNewFolder(AppConstants.FOLDER_ROOT_NAME);
		FileManager.createNewFolder(AppConstants.FOLDER_ROOT_PATH,
				AppConstants.FOLDER_SCREENSHOT);
		FileManager.createNewFolder(AppConstants.FOLDER_ROOT_PATH,
				AppConstants.FOLDER_SUBTILES);
	}

}
